package com.yn.club.subject.application.convert;


import java.util.List;
import com.yn.club.subject.domain.entity.SubjectBriefDO;
import com.yn.club.subject.application.dto.SubjectBriefDTO;
import com.yn.club.subject.application.request.SubjectBriefSaveRequest;
import com.yn.club.subject.application.request.SubjectBriefQueryRequest;
import org.mapstruct.Mapper;
import com.yn.club.common.util.MapStructUtil;
/**
 * 简答题(SubjectBrief)DTO和DO转换
 *
 * @author YN
 * @since 2025-01-21 17:40:47
 */
@Mapper(componentModel = "spring", uses = {MapStructUtil.class})
public interface SubjectBriefApplicationConverter {

  SubjectBriefDTO convertDoToDto(SubjectBriefDO ojb);
  
  List<SubjectBriefDTO> convertDoToDto(List<SubjectBriefDO> ojbs);
  
  SubjectBriefDO convertDtoToDo(SubjectBriefDTO ojb);
  
  List<SubjectBriefDO> convertDtoToDo(List<SubjectBriefDTO> ojbs);
  
  SubjectBriefDO convertSaveRequestToDo(SubjectBriefSaveRequest ojb);
  
  SubjectBriefDO convertQueryRequestToDo(SubjectBriefQueryRequest ojb);
  
  
}

